package com.woniuxy.intellihome.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.intellihome.entity.AdminPerm;
import com.woniuxy.intellihome.entity.Review;
import com.woniuxy.intellihome.mapper.AdminMapper;
import com.woniuxy.intellihome.mapper.AdminPermMapper;
import com.woniuxy.intellihome.mapper.ReviewMapper;
import com.woniuxy.intellihome.service.AdminPermService;
import com.woniuxy.intellihome.service.ReviewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jobob
 * @since 2021-08-11
 */
@Service
public class AdminPermServiceImpl extends ServiceImpl<AdminPermMapper, AdminPerm> implements AdminPermService {
    @Autowired
    private AdminPermMapper adminPermMapper;
    @Override
    public void addAdminPerm(int adminId, int permId) {
        adminPermMapper.addAdminPerm(adminId,permId);
    }

    @Override
    public void delByAdminId(int adminId) {
        adminPermMapper.delByAdminId(adminId);
    }
}
